package com.base.app_core.util.log;

import android.util.Log;

import com.base.app_core.BuildConfig;
import com.blankj.utilcode.util.StringUtils;


/**
 * Created by jiansheng.li on 2017/4/25.
 */

public class F {
    //打印日志信息
    public static void j(String content) {
        if (StringUtils.isEmpty(content)){
            return;
        }

        if (BuildConfig.DEBUG) {
            Log.d("jason", content);
        }
    }

    public static void w(String content) {
        if (StringUtils.isEmpty(content)){
            return;
        }

        if (BuildConfig.DEBUG) {
            Log.d("woody", content);
        }
    }

    //打印调用堆栈
    public static void tracke() {
        if (BuildConfig.DEBUG) {
            Log.d("tracker", Log.getStackTraceString(new Throwable()));
        }
    }

    public static void http(String content) {
        if (StringUtils.isEmpty(content)) {
            return;
        }

        if (BuildConfig.DEBUG) {
            Log.d("http", content);
        }
    }
}
